package top.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import org.springframework.beans.factory.annotation.Value;

/**
 * 题目类型
 *
 * @Author yql
 * @Date 2023-10-10 15:04
 */
public enum TopicEnum {
    SINGLECHOICE(1, "单选"),
    MULTIPLECHOICE(2, "多选");

    @EnumValue
    @JsonValue
    private final int code;
    private final String type;

    TopicEnum(int code, String type) {
        this.code = code;
        this.type = type;
    }

    public int getCode() {
        return code;
    }
}
